//榜单切换效果实现
var tagsType="";
document.querySelector(".list-switch").onclick = function (event) {
    //点击事件
    var ele = event.target;
    var eleLi = ele.parentElement;

    //console.log("ele："+ele);
    //console.log(eleLi.nodeName);//LI
    if (eleLi.nodeName == 'LI'){
        //删除所有li元素的样式
        var eleChild = eleLi.parentElement.children;
        for (const eleChildElement of eleChild){
            eleChildElement.classList.remove('checked');
            //console.log("测试4："+eleChildElement.classList);
        }
        eleLi.classList.add('checked')
        // console.log("测试1："+ele.parentElement.parentElement.firstElementChild.innerText);
        // console.log("测试2"+ele.innerText)
        // console.log("测试3："+ele.parentElement.innerText);

    }
}